package com.banksoft.admin.entity;

import com.banksoft.util.DateUtil;

/**
 * Created by Administrator on 2016/5/5.
 */
public class Notice {

    private String id;
    private String title;
    private String content;
    private Long createTime;
    private String status;
    private String pubMan;
    private String timeStr;

    public String getTimeStr() {
        if(createTime!=null)
            return DateUtil.getFormatDate(DateUtil.longToDate(createTime), "yyyy-MM-dd");
        return timeStr;
    }

    public void setTimeStr(String timeStr) {
        this.timeStr = timeStr;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPubMan() {
        return pubMan;
    }

    public void setPubMan(String pubMan) {
        this.pubMan = pubMan;
    }
}
